<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Gmuploader是一款可以提供跨平台支撑的上传组件</title>
		<link rel="stylesheet" href="css/global.css" />
		<link rel="stylesheet" href="css/index.css" />
		<link rel="stylesheet" href="css/lightbox.css" />
		<link rel="stylesheet" href="css/api.css" />
		<link rel="shortcut icon" href="img/favicon.ico"/>
	</head>
	<body>
		<header id="header">
			<div id="header-content">
				<a href="index.html"><div class="header-logo"></div></a>
				<div class="header-nav">
					<ul class="">
						<li><a href="demo.html">开始使用</a></li>
						<li class="cur"><a href="api.html">Gmuploader API</a></li>
						<li><a href="about.html">关于</a></li>
					</ul>
				</div>
			</div>
		</header>
		<div class="container">
		<div class="api_menu_left">
		    <ul class="clear layer_apiTitle">
		        <li hash="base" class="apinow">基础参数</li>
		        <!--<li hash="method" class="">集成方法</li>
		        <li hash="ext" class="">拓展方法</li>-->
		    </ul>
		    <ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px" data-ad-client="ca-pub-6111334333458862" data-ad-slot="2182025432"></ins>
		</div>
		<div class="api_menu_right layer_api">
		    <div class="clearfix"></div>
		    <div class="layer_apiBox" style="display: block;">
				<table class="api_table" border="0" cellspacing="0" cellpadding="0">
		        	<thead>
		    			<tr>
		                    <td style="width:20%;">键</td>
		                    <td style="width:20%;">值</td>
		                    <td style="width:60%;">描述</td>
		                </tr>
		  			</thead>
		           	<tbody>
		                <tr>
		                    <td colspan="3" style="padding:10px 20px;">下表的属性都是默认值，您可在调用时按需重新配置;</td>
		                </tr>
						<tr>
		                    <td>title</td>
		                    <td>图片上传</td>
		                    <td>弹出窗口的title</td>
		                </tr>
		                <tr>
		                    <td>name</td>
		                    <td>imageList</td>
		                    <td>上传回调后页面接收的path隐藏域的name值</td>
		                </tr>
		                <tr>
		                    <td>url</td>
		                    <td>空</td>
		                    <td>远程上传的url地址</td>
		                </tr>
		                <tr>
		                    <td>uploadType</td>
		                    <td>1</td>
		                    <td>上传类型。可选参数：2</td>
		                </tr>
		                <tr>
		                    <td>type</td>
		                    <td>image</td>
		                    <td>上传文件类型。可选参数：file</td>
		                </tr>
		                <tr>
		                    <td>listable</td>
		                    <td>true</td>
		                    <td>上传后是否显示图片列表。可选参数：false</td>
		                </tr>		               
		                <tr>
		                    <td>remove</td>
		                    <td>false</td>
		                    <td>上传后是否可以删除。可选参数：true</td>
		                </tr>
		                <tr>
		                    <td>fileType</td>
		                    <td>空</td>
		                    <td>附件上传时的文件类型,如*.jpg，多个以";"分割如'*.jpg;*.txt'</td>
		                </tr>
		                <tr>
		                    <td>fileSize</td>
		                    <td>5</td>
		                    <td>上传文件的大小限制。单位MB</td>
		                </tr>
		                <tr>
		                    <td>close</td>
		                    <td>false</td>
		                    <td>上传完成后是否关闭窗口</td>
		                </tr>
		                <tr>
		                    <td>closeTime</td>
		                    <td>2000</td>
		                    <td>上传后自动关闭窗口的时间。单位毫秒</td>
		                </tr>
		                <tr>
		                    <td>uploadLimit</td>
		                    <td>1</td>
		                    <td>允许上传的图片、文件数量</td>
		                </tr>
		                <tr>
		                    <td>handler</td>
		                    <td>true</td>
		                    <td>是否启用回调。可选参数：false</td>
		                </tr>
		                <tr>
		                    <td>upSuccess</td>
		                    <td>function(obj){}</td>
		                    <td>上传成功后的回调函数。返回的数据为标准json格式</td>
		                </tr>
		                <tr>
		                    <td colspan="3" style="padding:10px 20px;">以下属性继承至Layer</td>
		                </tr>
		                <tr>
		                    <td>maxmin</td>
		                    <td>false</td>
		                    <td>窗体是否输出窗口最小化/全屏/还原按钮</td>
		                </tr>
		                <tr>
		                    <td>width</td>
		                    <td>480px</td>
		                    <td>窗体宽度</td>
		                </tr>
		                <tr>
		                    <td>height</td>
		                    <td>450px</td>
		                    <td>窗体高度</td>
		                </tr>
		                <tr>
		                    <td>border</td>
		                    <td>0</td>
		                    <td>窗体边框大小</td>
		                </tr>
		                <tr>
		                    <td>borderOpacity</td>
		                    <td>0.3</td>
		                    <td>窗体边框透明度</td>
		                </tr>
		                <tr>
		                    <td>borderColor</td>
		                    <td>0</td>
		                    <td>窗体边框颜色</td>
		                </tr>
		                <tr>
		                    <td>shadeClose</td>
		                    <td>false</td>
		                    <td>用来控制点击遮罩区域是否关闭层。若开启，设为true即可</td>
		                </tr>
		                <tr>
		                    <td>closeBtn</td>
		                    <td>0</td>
		                    <td>控制层右上角关闭按钮。关闭按钮的风格（支持0和1）</td>
		                </tr>
		                <tr>
		                    <td>moveDrag</td>
		                    <td>.xubox_title</td>
		                    <td>设定某个元素来实现对层的拖拽。值为：用来拖拽的元素选择器若不想拖拽，设置成false即可</td>
		                </tr>
		                <tr>
		                    <td>moveType</td>
		                    <td>1</td>
		                    <td>用于配置拖拽类型.默认为直接拖动层，若值设为0，则为引导式拖动层</td>
		                </tr>
		                <tr>
		                    <td>moveOut</td>
		                    <td>false</td>
		                    <td>用于控制层是否允许被拖出可视窗口外</td>
		                </tr>
		                <tr>
		                    <td>btns</td>
		                    <td>1</td>
		                    <td>按钮的个数。提供了0-2的选择，设置0表示不输出按钮</td>
		                </tr>
		                <tr>
		                    <td>shift</td>
		                    <td>空</td>
		                    <td>用于控制动画弹出.有七种选择：左上(left-top),上(top), 右上(right-top),右下(right-bottom),下(bottom),左下(left-bottom),左('left')</td>
		                </tr>
		            </tbody>
		        </table>
		    </div>
		    
		    <div class="layer_apiBox" style="display: none;">
		    	<table class="api_table" border="0" cellspacing="0" cellpadding="0">
		            <thead>
		                 <tr>
		                    <td style="width:10%;">方法名</td>
		                    <td style="width:90%;">描述</td>
		                </tr>    
		            </thead>
		            <tbody>
						 <tr>
		                    <td>暂无</td><td>暂无</td>
		                </tr>
					</tbody>
				</table>
		    </div>
		    
		    <div class=" layer_apiBox" style="display: none;">
		    	<table class="api_table" border="0" cellspacing="0" cellpadding="0">
		            <thead>
		                <tr>
		                    <td style="width:10%;">方法名</td>
		                    <td style="width:90%;">描述</td>
		                </tr>
		            </thead>
		            <tbody>
						 <tr>
		                    <td>暂无</td><td>暂无</td>
		                </tr>
					</tbody>
				</table>
		    </div>
		</div>
		</div>
		<script type="text/javascript" src="js/jquery.min.js" ></script>
		<script type="text/javascript" src="js/api.js" ></script>	
		<link rel="stylesheet" href="http://cdn.bootcss.com/font-awesome/4.2.0/css/font-awesome.min.css" />
		<a id="scrollUp" href="#top" style="position: fixed; z-index: 2147483647; display: block;">
			<i class="fa fa-angle-up"></i>
		</a>
</html>
